<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Helpers_Usermanagement_Validate</title>
			<link rel="stylesheet" href="../../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Helpers_Usermanagement_Validate</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Performs validations during add/modify user</p>
	<ul class="tags">
				<li><span class="field">author:</span> Konstantin Shamko &lt;<a href="mailto:konstantin.shamko@gmail.com">konstantin.shamko@gmail.com</a>&gt;</li>
				<li><span class="field">version:</span> 0.0.1</li>
				<li><span class="field">copyright:</span> Copyright (c) 2009 Konstantin Shamko</li>
				<li><span class="field">license:</span> New</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_app---Helpers---Usermanagement---Validate.php.html">/app/Helpers/Usermanagement/Validate.php</a> (line <span class="field">14</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																												
												<div class="method-definition">
											<span class="method-result">Helpers_Usermanagement_Validate</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#ifEmailAvailable" title="details" class="method-name">ifEmailAvailable</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$email</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$user_id</span> = <span class="var-default">NULL</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#ifPasswordMatch" title="details" class="method-name">ifPasswordMatch</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$password</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$password_confirm</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#ifUsernameAvailable" title="details" class="method-name">ifUsernameAvailable</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$username</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$user_id</span> = <span class="var-default">NULL</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#validateCaptcha" title="details" class="method-name">validateCaptcha</a>
											(<span class="var-type">unknown_type</span>&nbsp;<span class="var-name">$request</span>)
									</div>
								</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="method__construct" id="__construct"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">27</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Initialization</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Helpers_Usermanagement_Validate</span>
		<span class="method-name">
			__construct
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodifEmailAvailable" id="ifEmailAvailable"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">ifEmailAvailable</span> (line <span class="line-number">74</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Validates if email available</p>
	<ul class="tags">
				<li><span class="field">return:</span> - true if available</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			ifEmailAvailable
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$email</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$user_id</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$email</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$user_id</span>			</li>
				</ul>
		
			
	</div>
<a name="methodifPasswordMatch" id="ifPasswordMatch"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">ifPasswordMatch</span> (line <span class="line-number">38</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Validates passwords match</p>
	<ul class="tags">
				<li><span class="field">return:</span> - true if match</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			ifPasswordMatch
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$password</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$password_confirm</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$password</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$password_confirm</span>			</li>
				</ul>
		
			
	</div>
<a name="methodifUsernameAvailable" id="ifUsernameAvailable"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">ifUsernameAvailable</span> (line <span class="line-number">53</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Validates if username is available</p>
	<ul class="tags">
				<li><span class="field">return:</span> - true if available</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			ifUsernameAvailable
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$username</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$user_id</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$username</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$user_id</span>			</li>
				</ul>
		
			
	</div>
<a name="methodvalidateCaptcha" id="validateCaptcha"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">validateCaptcha</span> (line <span class="line-number">94</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Validates catcha field</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			validateCaptcha
		</span>
					(<span class="var-type">unknown_type</span>&nbsp;<span class="var-name">$request</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">unknown_type</span>
				<span class="var-name">$request</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Mon, 01 Mar 2010 18:58:53 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.0</a>
	</p>
	</div></body>
</html>